
import { md5 } from 'js-md5';
const useMaskedEncryption = (inputData: string | number, maskedData: string | number) => {
  const encryptedData = md5(inputData);
  const masked = `***${encryptedData.substring(3, 9)}***`;
  maskedData = masked;
  return maskedData
};

export  {useMaskedEncryption}   